<div id="actionbar">
    <span url="{:url('ais/shop.cate/edit')}" class="button button-blue win"> <i class="iconfont icon-add_icon"></i>创建专题</span>
</div>
<table class="table">
    <thead>
        <tr>
            <th class="w60 fn-tac">排序</th>
            <th class="w300">专题名称</th>
            <th class="w100 fn-tac">分类属性</th>
            <th>专题简介</th>
            <th class="w140">更新时间</th>
            <th class="w160">操作</th>
        </tr>
    </thead>
    <tbody>
        {foreach $lists as $vo}
        <tr>
            <td class="fn-tac"><input name="sort" class="fn-tac w40 input input-mini" type="text" value="{$vo['sort']}" id="{$vo.id}" /></td>
            <td><span class="win fn-cp" url="{:url('ais/shop.cate/edit',['id'=>$vo.id])}">{$vo.title}</span></td>
            <td class="fn-tac">{if $vo.types}<span class="badge bg-green">首页推荐</span>{else}<span class="badge">默认分类</span>{/if}</td>
            <td><a href="{:url('ais/shop.index/index',['cate_id'=>$vo.id])}">{$vo.content}</a></td>
            <td>{$vo.update_time|date='Y-m-d H:i'}</td>
            <td class="button-group">
                <span class="button fn-cp win" url="{:url('ais/shop.cate/edit',['id'=>$vo.id])}"><i class="iconfont icon-edit"></i>编辑</span>
                <a class="button isDel" url="{:url('ais/shop.cate/delete',['id'=>$vo.id])}" href="javascript:;"><i class="iconfont icon-lajixiang"></i>删除</a>
            </td>
        </tr>
        {/foreach}
    </tbody>
</table>
{$lists|raw}
<script type="text/javascript">
Do('base', 'layer', function () {
    $('.isDel').isDel();
    $('.win').win({reload:true,area:['600px','480px']});
    sort("{:url('ais/shopCate/sort')}");
})
</script>